package com.cxs.plan.mapper;

import com.cxs.plan.VO.DayPayBriefVO;
import com.cxs.plan.VO.MonthPayBriefVO;
import com.cxs.plan.VO.PayVO;
import com.cxs.plan.VO.VariationVO;
import com.cxs.plan.domain.entity.PayVariation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
* @author Administrator
* @description 针对表【pay_variation(消费/收入记录)】的数据库操作Mapper
* @createDate 2024-04-02 15:59:43
* @Entity com.cxs.plan.domain.entity.PayVariation
*/
public interface PayVariationMapper extends BaseMapper<PayVariation> {


    List<VariationVO> selectVariationList(@Param("userId") Integer userId, @Param("billId") Integer billId);

    BigDecimal selectTodayPay(Integer currentId);

    List<PayVO> selectByDate(@Param("date") String date,@Param("userId") Integer userId, @Param("monthKey") String monthKey);

    List<DayPayBriefVO> selectEveryDaySumByDate(@Param("date") String date, @Param("userId") Integer currentId);

    MonthPayBriefVO selectMonthSumByDate(@Param("date") String date,@Param("userId") Integer currentId);
}




